import { createRouter, createWebHistory } from "vue-router";
const Home = () => import('@/components/Home.vue');
const DataDown = () => import('@/components/DataDown/DataDown.vue');
const PhysicsVideo = () => import('@/components/PhysicsVideo/PhysicsVideo.vue');
const Chemistry = () => import('@/components/Chemistry/Chemistry.vue');
const RecruitTutor = () => import('@/components/RecruitTutor/RecruitTutor.vue');
const FindTutor = () => import('@/components/FindTutor/FindTutor.vue');
const Other = () => import('@/components/Other/Other.vue');
const routes = [
    {
        path:"/",
        name:"Home",
        component:Home,
        meta:{
          title:"首页"
        },
    },
    {
        path:"/DataDown",
        name:"DataDown",
        component:DataDown,
        meta:{
            title:"资料下载"
        },
    },
    {
        path:"/PhysicsVideo",
        name:"PhysicsVideo",
        component:PhysicsVideo,
        meta:{
            title:"物理实验视屏"
        },
    },
    {
        path:"/Chemistry",
        name:"Chemistry",
        component:Chemistry,
        meta:{
            title:"化学实验视屏"
        },
    },
    {
        path:"/RecruitTutor",
        name:"RecruitTutor",
        component:RecruitTutor,
        meta:{
            title:"应聘家教"
        },
    },
    {
        path:"/FindTutor",
        name:"FindTutor",
        component:FindTutor,
        meta:{
            title:"家教"
        },
    },
    {
        path:"/Other",
        name:"Other",
        component:Other,
        meta:{
            title:"其他"
        },
    }
]
const router = createRouter({
    history: createWebHistory(),
    routes
});
export default router;
